package com.xunyji.chapter0101.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author AltEnter
 * @create 2019-04-06 15:24
 * @desc 测试控制层
 **/
@RestController
@RequestMapping(value = "/test")
@Slf4j
public class TestController {
    @GetMapping(value = "/connect")
    public String connect() {
        String msg = "前后端连接测试";
        log.info(msg);
        return msg;
    }
}

